[%WRAPPER Interface/Page.htm
  title = ""%]
      <table border="0" cellpadding="5" cellspacing="2" width="100%">
        <tr>
          <td><font class="location"><a href="[%system.SCRIPT_URL%]">Index</a> /</font></td>
        </tr>
      </table>
      <table border="0" cellpadding="1" cellspacing="1" width="100%" class="main-border">
        [%form.StartForm()%]
        <tr class="main-background">
          <td>
            <table border="0" cellpadding="1" cellspacing="0" width="100%">
              <tr>
                <td>
                  <table border="0" cellspacing="1" cellpadding="3" width="100%" class="row-border">
                    <tr class="header">
                      <td>
                        <table border="0" cellspacing="0" cellpadding="1" width="100%">
                          <tr>
                            <td width="2" nowrap></td>
                            <td width="100%"><font class="header">Index</font></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
                  <table border="0" cellspacing="1" cellpadding="3" width="100%" class="row-border">
                    <tr class="body">
                      <td>
                        <table border="0" cellspacing="1" cellpadding="0" width="100%" class="table-border">
                          <tr>
                            <td>
                              <table border="0" cellspacing="1" cellpadding="6" width="100%" class="table">
                              [%IF featured%]
                                <tr class="table-header">
                                  <td align="left" width="100%" colspan="2"><font class="table-header">Featured Resource</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td align="left" width="100%" colspan="2"><font class="table-row"><a href="[%system.SCRIPT_URL%]?action=Jump&RID=[%featured.ID%]">[%featured.TITLE%]</a> (<a href="[%system.SCRIPT_URL%]?action=Detail&RID=[%featured.ID%]">More Info</a>)
                                    [%IF featured.NEW1%]<sup>new</sup>[%END%]
                                    [%IF featured.NEW2%]<sup>very new</sup>[%END%]
                                    [%IF featured.NEW3%]<sup>super new</sup>[%END%]
                                    [%IF featured.HOT1%]<sup>hot</sup>[%END%]
                                    [%IF featured.HOT2%]<sup>very hot</sup>[%END%]
                                    [%IF featured.HOT3%]<sup>super hot</sup>[%END%]
                                    [%IF featured.COOL1%]<sup>cool</sup>[%END%]
                                    [%IF featured.COOL2%]<sup>very cool</sup>[%END%]
                                    [%IF featured.COOL3%]<sup>super cool</sup>[%END%]
                                    [%IF featured.UPDATED%]<sup>updated</sup>[%END%]
                                    <br>
                                  [%IF featured.DESCRIPTION%]
                                    [%featured.DESCRIPTION%]<br>
                                  [%END%]
                                    <small>URL: [%featured.URL%] (Hits: [%featured.HITS%], <a href="[%system.SCRIPT_URL%]?action=Detail&RID=[%featured.ID%]">Rating</a>: [%featured.RATING%], <a href="[%system.SCRIPT_URL%]?action=Detail&RID=[%featured.ID%]">Reviews</a>: [%featured.REVIEWS%],
                                    [%IF featured.flags.DEAD_LINK%]
                                       Marked as Dead,
                                    [%ELSE%]
                                       <a href="[%system.SCRIPT_URL%]?action=DeadLink&RID=[%featured.ID%]">Mark as Dead</a>,
                                    [%END%]
                                       <a href="[%system.SCRIPT_URL%]?action=Recommend&FORM_RID=[%featured.ID%]">Recommend to a friend</a>)<br>
                                       Created: [%featured.CREATE_DATE%] at [%featured.CREATE_TIME%], Updated: [%featured.UPDATE_DATE%] at [%featured.UPDATE_TIME%]</small>
                                    </font></td>
                                </tr>
                              [%END%]
                              [%IF categories.size >= 1%]
                                <tr class="table-header">
                                  <td align="left" width="100%" colspan="2"><font class="table-header">Categories</font></td>
                                </tr>
                                <tr class="table-row">
                                  <td align="left" width="100%" colspan="2">
                                    <font class="table-row">There are a total of <b>[%categories.size%]</b> categories at this level:</font>
                                    
                                    [%SET left = tools.SplitColumns(categories, 2, 1)%]
                                    [%SET right = tools.SplitColumns(categories, 2, 2)%]
                                    
                                    <p><table border="0" cellspacing="0" cellpadding="0" width="100%">
                                      <tr>
                                        <td width="50%" valign="top">
                                        [%FOREACH subcategory = left%]
                                          <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                            <tr>
                                              <td width="20" nowrap></td>
                                              <td width="1" nowrap valign="top"><li></li></td>
                                            [%IF subcategory.IMAGE%]
                                              <td width="1" nowrap valign="top"><img border="0" src="[%subcategory.IMAGE%]"></td>
                                              <td width="5" nowrap></td>
                                            [%END%]
                                              <td valign="top"><font class="table-row"><a href="[%system.SCRIPT_URL%]?action=Category&CID=[%subcategory.ID%]">[%subcategory.TITLE%]</a> ([%subcategory.RESOURCES%])<br>
                                              [%IF subcategory.DESCRIPTION%]
                                                [%subcategory.DESCRIPTION%]<br>
                                              [%END%]
                                                </font></td>
                                            </tr>
                                          </table>
                                        [%END%]
                                        </td>
                                        <td width="50%" valign="top">
                                        [%FOREACH subcategory = right%]
                                          <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                            <tr>
                                              <td width="20" nowrap></td>
                                              <td width="1" nowrap valign="top"><li></li></td>
                                            [%IF subcategory.IMAGE%]
                                              <td width="1" nowrap valign="top"><img border="0" src="[%subcategory.IMAGE%]"></td>
                                              <td width="5" nowrap></td>
                                            [%END%]
                                              <td valign="top"><font class="table-row"><a href="[%system.SCRIPT_URL%]?action=Category&CID=[%subcategory.ID%]">[%subcategory.TITLE%]</a> ([%subcategory.RESOURCES%])<br>
                                              [%IF subcategory.DESCRIPTION%]
                                                [%subcategory.DESCRIPTION%]<br>
                                              [%END%]
                                                </font></td>
                                            </tr>
                                          </table>
                                        [%END%]
                                        </td>
                                      </tr>
                                    </table>
                                    <p>
                                  </td>
                                </tr>
                              [%END%]
                              [%IF categories.size < 1%]
                                <tr class="table-row">
                                  <td align="left" width="100%" colspan="2"><font class="table-row">There are currently no categories for you to browse.</font></td>
                                </tr>
                              [%END%]
                                <tr class="table-row">
                                  <td align="left" width="100%" colspan="2"><font class="table-row">There are a total of <b>[%totals.RESOURCES%]</b> resources for you to browse.</font></td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td>
                  <table border="0" cellspacing="1" cellpadding="3" width="100%" class="row-border">
                    <tr class="bottombar">
                      <td><font class="bottombar"></font></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      [%form.EndForm()%]
      </table>
[%END%]